/*****************************************************************************/
/**
 *  @file   PixelDraw.cpp
 *  @author Allan Lorant, Naohisa Sakamoto
 */
/*----------------------------------------------------------------------------
 *
 *  Copyright (c) Visualization Laboratory, Kyoto University.
 *  All rights reserved.
 *  See http://www.viz.media.kyoto-u.ac.jp/kvs/copyright/ for details.
 *
 *  $Id$
 */
/*****************************************************************************/
#include <kvs/glut/Application>
#include <kvs/glut/Screen>
#include "PixelDraw.h"


int main(int argc, char ** argv)
{
    kvs::glut::Application app( argc, argv );
    kvs::glut::Screen screen( &app );

    PixelDraw::Interface interface( 800, 600 );
    PixelDraw::InitializeEvent initialize_event( &interface );
    PixelDraw::PaintEvent paint_event( &interface );

    screen.setTitle( "PixelDraw" );
    screen.setGeometry( 0, 0, 800, 600 );
    screen.addInitializeEvent( &initialize_event );
    screen.setPaintEvent( &paint_event );
    screen.show();

    return app.run();
}
